package com.example.mq;

import org.springframework.amqp.core.FanoutExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>Netty交换机 声明
 *
 * @author zhouwc
 * @since 2021年07月05日
 */
@Configuration
public class NettyExchangeConfig {

    /**
     * <p>声明一个 Fanout 类型的交换机-摄像头告警
     * @return {@link FanoutExchange}
     * @since 2021年07月05日
     * 版本历史:
     * Date         Author         Description
     *---------------------------------------------------------*
     * 2021/07/05    zhouwc          初始创建
     */
    @Bean(NettyExchangeUtil.ECO_AIRPARAM_FANOUT)
    FanoutExchange ecoAirparamFanout(){
        return new FanoutExchange(NettyExchangeUtil.ECO_AIRPARAM_FANOUT);
    }
    

}
